package com.quanyue.haircut.shop.service;

import com.quanyue.haircut.domain.entity.IntegralConvert;
import com.quanyue.haircut.domain.entity.UserIntegral;
import com.quanyue.haircut.shop.dto.IntegralOrderDetail;
import com.vhuomai.mybatis.mapper.page.Page;
import com.vhuomai.mybatis.mapper.page.PageRequest;

import java.math.BigInteger;

public interface IntegralService {
    UserIntegral updateIntegral(Integer userId, Integer shopId, BigInteger integer);

    void integralProductRecord(IntegralConvert integralConvert);

    UserIntegral findIntegral(Integer userId, Integer shopId);

    Page <IntegralOrderDetail> findIntegralOrder(Integer shopId, PageRequest request);
}
